package com.nf.service;

import java.sql.SQLException;
import java.util.List;
import com.nf.dao.DbutilsProductDao;
import com.nf.entity.ProductEntity;

public class ProductServiceImpl {	

	DbutilsProductDao dao=new DbutilsProductDao();
	
	public List<ProductEntity>getAlls() throws SQLException{
		return dao.getAll();
	}
	public int deleteByNo(String no) throws SQLException {
		return dao.deleteByNo(no);
	}
	public ProductEntity getInfoByNo(String no) throws SQLException {
		return dao.getInfoByNo(no);
	}
	public int update(ProductEntity product) throws SQLException {
		return dao.update(product);
	}
	public int insert(ProductEntity product) throws SQLException {
		return dao.insert(product);
	}
}
